package top.fangw.tenant.mapper;

import org.apache.ibatis.annotations.Param;
import top.fangw.tenant.pojo.entity.PackageJonApplication;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 用途：用于管理系统中的租户套餐与应用的关联关系 Mapper 接口
 * </p>
 *
 * @author fangw
 * @since 2024-02-02
 */
@Mapper
public interface PackageJonApplicationMapper extends BaseMapper<PackageJonApplication> {

    List<String> selectApplicationIdsByTenantPackageId(@Param("id") String id);

    /**
     * 真正删除套餐与应用的关联关系
     * @param packageId
     * @param applicationId
     */
    void deleteByIdAct(@Param("packageId") String packageId, @Param("applicationId") String applicationId);

    void deleteByPackageId(@Param("packageId") String packageId);
}
